package com.stone.db.jdbc.service;

import com.stone.db.jdbc.entity.Order;

import java.util.List;

/**
 * <p>Created with IntelliJ IDEA. </p>
 * <p>User: Stony </p>
 * <p>Date: 2016/6/27 </p>
 * <p>Time: 14:47 </p>
 * <p>Version: 1.0 </p>
 */
public interface OrderService {

    List<Order> queryAll();

    Order saveOrder(Order order);

    Order updateOrder(Order order);


    Order queryOrder(int orderId);

    int saveOrders(List<Order> orders);

    void saveOrdersWithFailure(List<Order> orders);
}
